import { configureStore } from '@reduxjs/toolkit';
import layoutSlice from "./modules/layoutSlice"

// 创建Redux store
const store = configureStore({
    reducer: {
        layoutSlice, // 将slice的reducer添加到store中
    },
});

// 导出store以供React组件使用
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
export default store;